package com.github.jettyrun.springinterface.demo.initializingbean;

import com.github.jettyrun.springinterface.demo.bean.Car;
import com.github.jettyrun.springinterface.demo.factorybean.SingletonCarFactoryBean;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by jetty on 18/1/31.
 */
public class Main {

    public static void main(String[] args) {
        AbstractApplicationContext applicationContext=new ClassPathXmlApplicationContext("classpath:application-usertag.xml");
//        InitBean initBean=(InitBean)applicationContext.getBean("initBean");
        System.out.println("init-success");
        applicationContext.registerShutdownHook();
    }
}
